package com.cch.cooperation.api.auth.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 登陆用户
 *
 * @author caich
 **/
@ApiModel("登陆用户信息")
@Data
public class LoginUserDTO implements Serializable {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("性别（0.男 1.女）")
    private Integer sex;

    @ApiModelProperty("头像地址")
    private String avatarUrl;

    @ApiModelProperty("用户类型 0.游客 1.正常用户")
    private Integer type;

    @ApiModelProperty("是否是新创建的用户")
    private Boolean isNewCreate;

    @ApiModelProperty("会员到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date vipExpireTime;
}
